home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / APPLI / FINDER_2.2 / FINDER22.TXT < prev   
Encoding:
Text File  |  1995-12-27  |  21.8 KB  |  525 lines

  1.                                ROUTE FINDER v2.2
  2.                                -----------------
  3.  
  4.                            THIS PROGRAM IS SHAREWARE
  5.  
  6.          IF YOU USE THIS PROGRAM  REGULARLY  YOU SHOULD REGISTER YOUR
  7.          COPY BY SENDING ú10.00 (CHEQUE OR POSTAL ORDER) TO :-
  8.  
  9.                              BRIAN HENDERSON
  10.                              32 ARCHERS AVENUE
  11.                              BROOMRIDGE
  12.                              STIRLING
  13.                              FK7 7RJ
  14.  
  15.          YOU WILL RECEIVE IN  RETURN  A  CODE  WHICH  WILL REMOVE ALL
  16.          LIMITATIONS (ROUTES OF ANY DISTANCE CAN BE FOUND AND NO MORE
  17.          15 SECOND DELAYS), A  LIST  OF  ADDITIONAL  COMMANDS FOR THE
  18.          SETUP FILE,  INFORMATION  ON  HOW  THE  ALGORITHM  WORKS AND
  19.          DETAILS OF ANY FUTURE UPGRADES, BUG FIXES, MAP UPDATES ETC.
  20.  
  21.  
  22.  
  23.                                    CONTENTS
  24.  
  25.  
  26.          1.    INTRODUCTION
  27.  
  28.          2.    PROGRAM REQUIREMENTS
  29.  
  30.          3.    DISPLAY
  31.  
  32.          4.    MENU OPTIONS
  33.  
  34.          5.    SETUP FILE DETAILS
  35.  
  36.          6.    MAP INFORMATION
  37.  
  38.          7.    DISTRIBUTION METHOD
  39.  
  40.          8.    CHANGES FROM EARLIER METHODS
  41.  
  42.          9.    DISCLAIMER
  43.  
  44.  
  45.  
  46. 1.    INTRODUCTION
  47.  
  48. Route Finder is an  electronic  map  program  which  can  be  used  to find the
  49. shortest or quickest routes avoiding specified  places and roads en route.  The
  50. route found by the program  is  displayed  either  as  a  table or can be shown
  51. graphically.  To calculate the  quickest  route  average  driving speeds can be
  52. entered for different types of roads.
  53.  
  54. It has been impossible to include every  place  in Britain in the map therefore
  55. an option to insert, amend and remove places and roads has been included in the
  56. program.  This will also allow new roads to be added when they are built.
  57.  
  58. In addition to simply finding a route between two places the program can be put
  59. to a wide variety of uses.  For example it could be used to quickly calculate a
  60. fairly accurate mileage between two places.   It can suggest alternative routes
  61. if you are tired of the same route or if there are major delays on your present
  62. routes.  This can be achieved by  entering  place(s)  to avoid or by making the
  63. program find the shortest route  (the  shortest  and quickest routes are rarely
  64. the same).
  65.  
  66. The road building program has increased  dramatically in recent years and there
  67. have also  been  changes  in  road  names.   This  program  is  a  much cheaper
  68. alternative to purchasing a new road map each year.
  69.  
  70. Note that Route Finder now has its own World Wide Web page at:-
  71.  
  72.     http://www.ncl.ac.uk/~nbsh/
  73.  
  74.  
  75. 2.    PROGRAM REQUIREMENTS
  76.  
  77. The program should run on any ST, STE, Mega  ST, Mega STE, TT or Falcon with at
  78. least 512K free memory although I have  been  unable to test the program on all
  79. these machines.  It will work with  external  drives, both hard and floppy, and
  80. epson compatible printers.
  81.  
  82. The latest version of the program  has  been  designed to take advantage of the
  83. screen resolution it is run on  therefore Falcon screen resolutions should work
  84. although it must be run in a mode with at least 80 columns therefore ST low res
  85. cannot be used.
  86.  
  87. The program should run in  a  multi  tasking  environment note however that GFA
  88. Basic programs reserve all but 16K of the computer's available memory.
  89.  
  90.  
  91. 3.    DISPLAY
  92.  
  93. The screen displays a standard menu  across  the  top  of the screen.  If a map
  94. with more than one place is in memory a  window opens, the title is the name of
  95. the file (minus the extension) and the info line contains details of the number
  96. of places and roads in memory and  the  zoom factor along with the distance and
  97. the time of the journey if one has  been found.  The contents of the window can
  98. be either a table of the route found or  a graphical display of the map and the
  99. route.
  100.  
  101.  
  102.       3.1  GRAPHICAL DISPLAY
  103.  
  104.       A graphical representation of the position of the places and roads in the
  105.       current map are shown in the window.   Places are shown by dots and roads
  106.       are represented by different line types.
  107.  
  108.       Solid line          Motorway or dual carriageway (urban or rural)
  109.       Long-dashed line    Good condition single carriageway (urban or rural)
  110.       Dotted line         Ferry routes
  111.       Dot-dashed line     Poor condition single carriageway
  112.       Dash dot dot line   Single track roads
  113.  
  114.       In order to see the map in more  detail  the user may zoom in on any area
  115.       by pressing and holding the left mouse  button  in the top left corner of
  116.       the area to be zoomed and  then  dragging  the  mouse to the bottom right
  117.       corner of the area.  When the left  mouse  button is released the area is
  118.       almost instantly zoomed in on showing more detail.  Initially with larger
  119.       maps only cities and motorways  are  shown  ensuring  the screen does not
  120.       appear cluttered.  As the map is zoomed in smaller places and minor roads
  121.       are displayed.  To show the entire map  on the screen again choose Reduce
  122.       to Max from the Graphics menu or press  CTRL+R.  Note that the map can be
  123.       scrolled in the usual way using the slider bars.  The map can also been
  124.       zoomed by pressing the + key to zoom in and the - key to zoom out.
  125.  
  126.       Place and road names can be toggled on  and  off using the F5 and F6 keys
  127.       respectively.  Note that road names should only be displayed when the map
  128.       is satisfactorily zoomed.
  129.  
  130.       When a route has been calculated using the Find Route option the route is
  131.       displayed by a series of thick arrowed lines.
  132.  
  133.       When an area is zoomed the  correct  aspect ratio is calculated therefore
  134.       the zoomed area may be slightly different  from the defined box.  The box
  135.       defined by the mouse must be larger than 10 pixels by 10 pixels.
  136.  
  137.  
  138.       3.2  TABLE VIEW
  139.  
  140.       When a route has been found  with  the  Find  Route  option a list of the
  141.       places, roads to be used along with  the  distances on the roads is given
  142.       in the form of a table.   The  final  column may contain an asterix, this
  143.       means that you may be unable  to  take  this section of the journey since
  144.       you have to use a ferry (which may not run at the time of the journey) or
  145.       it may be a limited  access  intersection  which  may not have a suitable
  146.       slip road).  If the suggested route  is  longer  than one screen then the
  147.       table can be scrolled in the normal way.
  148.  
  149.       If no route is in memory then a list  of the number of each type of place
  150.       and road is displayed on the screen.
  151.  
  152.  
  153.  
  154. 4.    MENU OPTIONS
  155.  
  156.       A standard GEM menu bar is displayed at the top of the screen.  Most menu
  157.       options also have a keyboard shortcut.  Each option is explained below.
  158.  
  159.       4.1     DESK
  160.  
  161.       4.1.1 About Route Finder
  162.  
  163.       If the program is in registered mode then a dialogue box appears with the
  164.       copyright notice and  general  information  about  the  program.   If the
  165.       program  is  unregistered  then  a  dialogue  box  appears  with  general
  166.       information and prompts the user to enter a unique code which removes the
  167.       limitations.  This is  available  when  the  program  is  registered (see
  168.       section 7).
  169.  
  170.       4.1.2 Desk Accessories
  171.  
  172.       Desk accessories can  be  accessed  in  the  normal  way.   Note that the
  173.       program may not always perform  a  screen  redraw  after the accessory is
  174.       terminated.  In this case simply  press  F10  to clear the desk accessory
  175.       from the screen.
  176.  
  177.  
  178.       4.2     FILE
  179.  
  180.       4.2.1   New              CTRL+N
  181.  
  182.       Clears the old map from  memory.   Note  that  the previous map should be
  183.       saved since once a map has been cleared it cannot be retrieved.
  184.  
  185.       4.2.2   Load Map         CTRL+L
  186.  
  187.       Enter the name of the  map  file,  eg  BRITAIN.MAP, into the fileselector
  188.       box.  If the file is found,  is  a  valid  file  and there is enough free
  189.       memory the file will load into memory clearing the previous map.
  190.  
  191.       When loading a map file the program checks the integrity of the file.  If
  192.       there is a problem with the  file  a  dialogue box appears after the file
  193.       has loaded with the message "FILE STRUCTURE NOT VALID" this will probably
  194.       be due to the roads being  out  of  sequence.  Roads must be in ascending
  195.       order by the first number in each row.
  196.  
  197.       4.2.3   Save             CTRL+S
  198.  
  199.       If a filename has not already  been  specified a fileselector box appears
  200.       and a filename should be entered.   If  an  extension is not entered then
  201.       .MAP is automatically appended  to  the  filename.   If  the file already
  202.       exists on the disk then it  is  renamed  with a .BAK extension.  If there
  203.       are no places in the present map then the map will not be saved.
  204.  
  205.       A cannot save map alert box  appears  if  the  disk is write protected or
  206.       there is not enough free space on the disk.
  207.  
  208.       4.2.4   Save as          CTRL+A
  209.  
  210.       Same as above except a fileselector box always appears on the screen.
  211.  
  212.       4.2.5   Quit             CTRL+Q
  213.  
  214.       If the map in memory was changed but  not saved then an alert box appears
  215.       with three options, Quit (the map  in  memory  will  not be saved and all
  216.       changes will be lost), Save (the changes will be saved to disk before the
  217.       program is terminated) and Cancel (you are taken back into the program).
  218.  
  219.  
  220.       4.3     Edit Map
  221.  
  222.       4.3.1   Insert Place     F1
  223.  
  224.       A dialogue box appears and the  name  of  the new place should be entered
  225.       (note that  no  two  places  can  have  the  same  name).   The  x  and y
  226.       coordinates should be entered  to  position  the  place  on  the map (the
  227.       coordinates must be positive integers  less  than 32000).  The place type
  228.       should also  be  selected  (the  place  types  are  Village,  Town, City,
  229.       Terminal, Limited  access  intersection,  Complete  access  intersection,
  230.       Roundabout and Junction).  If there is more than one place in memory then
  231.       the Insert Road dialogue box appears (see section 3.2).
  232.  
  233.       It may be difficult to calculate the  exact  position of the place on the
  234.       map therefore a second method of  inserting  places has been added to the
  235.       program when the graphics view has been chosen.  Simply click on the part
  236.       of the map with the left mouse  button  of the position of the new place,
  237.       this will cause the insert place dialogue box  to appear with the x and y
  238.       coordinates already inserted.  For  greater  accuracy  the  map should be
  239.       zoomed firstly.
  240.  
  241.       Place details can be amended using this option.  Simply enter the name of
  242.       the place to be altered then select the  new place type and enter the new
  243.       x and y coordinates.  An alert box appears asking the user to confirm the
  244.       changes.
  245.  
  246.       4.3.2   Remove Place     F2
  247.  
  248.       Enter the name of  the  place  to  be  removed  and  hit Okay.  All roads
  249.       connected to the place are also removed.  Places cannot be retrieved once
  250.       they have been removed.
  251.  
  252.       4.3.3   Insert Road      F3
  253.  
  254.       Enter the starting  place,  finishing  place,  the  distance  between the
  255.       places, the name of the road eg  A876  and  the road type (the road types
  256.       are motorway or dual carriageway, good condition single carriageway, poor
  257.       condition single carriageway, single  track  road, urban dual carriageway
  258.       and urban single carriageway).  There  can  only  be one road between two
  259.       places and the starting and  finishing  place  must  exist  in the map in
  260.       memory.
  261.  
  262.       If a road already exists between  two  places an alert box appears asking
  263.       whether you want to change the details of the road which already exists.
  264.  
  265.       4.3.4   Remove Road      F4
  266.  
  267.       Enter the starting place and  finishing  place  into the dialogue box and
  268.       the road will be removed forever.
  269.  
  270.  
  271.       4.4     Route
  272.  
  273.       4.4.1   Find Route       CTRL+F
  274.  
  275.       This options allows you to find a route between two places.  Simply enter
  276.       the starting and finishing place (remember  and  use  the down key or the
  277.       tab key and not the return key to move between fields) and click on Okay.
  278.       In addition places and roads to avoid and whether to find the shortest or
  279.       quickest route can be entered.  The program will then attempt to find the
  280.       best route, this may take some time,  during  this time if the escape key
  281.       is pressed the option is aborted.
  282.  
  283.       If the starting  or  finishing  place  is  miss-spelt  then  an alert box
  284.       appears suggesting the correct spelling.
  285.  
  286.       Note that with v2.2 the previously entered Start and Finish place are now
  287.       redisplayed when this  option is chosen.  This makes it easier to try out
  288.       a variety of different routes.
  289.  
  290.       4.4.2   Set Preferences  CTRL+P
  291.  
  292.       Enter your average speeds for each  of  the  road types listed along with
  293.       whether you  want  distances  calculated  in  miles  or  kilometers.  The
  294.       average speeds are used to  help  calculate  the quickest routes with the
  295.       Find Route option (see section 4.4.1).
  296.  
  297.       4.4.3   Show as Table    CTRL+T
  298.  
  299.       Shows the current route as a table (see section 3.2).
  300.  
  301.       4.4.4   Show as Graphics CTRL+G
  302.  
  303.       Shows the current route graphically on the screen (see section 3.1).
  304.  
  305.       4.4.5   Print Route      CTRL+W
  306.  
  307.       If a route has been  found  then  the  route  can  be printed to an epson
  308.       printer in the same form as the table view.  The number of lines per page
  309.       and the form feed character can be set in the setup file (see section 5).
  310.       The format of the  printed  route  is  the  same  as  the table view (see
  311.       section 3.2).
  312.  
  313.       With v2.2 a  bug  which  prevented  printing on the  Falcon has  now been
  314.       removed.
  315.  
  316.  
  317.       4.5     Graphics
  318.  
  319.       The following options have no effect when in table view.
  320.  
  321.       4.5.1   Reduce to Max    CTRL+R
  322.  
  323.       If the view has been zoomed  then  this  option redisplays the entire map
  324.       again.
  325.  
  326.       4.5.2   Show Place Names F5
  327.  
  328.       Displays place names on the screen.
  329.  
  330.       4.5.3   Show Edge Names  F6
  331.  
  332.       Displays road names on screen.   This  option  should only be chosen when
  333.       the map is sufficiently zoomed.
  334.  
  335.  
  336. 5.    SETUP FILE DETAILS
  337.  
  338.       When Route Finder loads it looks for  a file called FINDER21.INF which is
  339.       used to setup  various  defaults  including  the  average  speeds for the
  340.       different road types, the name of the  map file to load automatically and
  341.       whether to use miles or  kilometers.   Note  that additional commands are
  342.       given when the program is registered (see section 7) and that the program
  343.       only reads the first  four  characters  of  each  command. The syntax and
  344.       descriptions of the commands is given below :-
  345.  
  346.       MISCELLANEOUS
  347.  
  348.       FILE=<filename>
  349.       Load the map file <filename> automatically when Route Finder loads
  350.  
  351.       USE=[miles|kilometers]
  352.       Force the program to use either miles or kilometers
  353.  
  354.       DEFA=[shor|quic]
  355.       Set the default route type to either shortest or quickest route
  356.  
  357.  
  358.       DEFAULT ROAD SPEEDS
  359.       Note that speeds must be entered in miles per hour
  360.  
  361.       MOTO=<speed>
  362.       Set the default average motorway speed to <speed>
  363.  
  364.       GOOD=<speed>
  365.       Set the default good condition single carriageway speed to <speed>
  366.  
  367.       POOR=<speed>
  368.       Set the default poor condition single carriageway speed to <speed>
  369.  
  370.       SING=<speed>
  371.       Set the default average single track road speed to <speed>
  372.  
  373.       FERR=<speed>
  374.       Set the default ferry speed to <speed>
  375.  
  376.       URDU=<speed>
  377.       Set the default urban dual carriageway speed to <speed>
  378.  
  379.       URSI=<speed>
  380.       Set the default urban single carriageway speed to <speed>
  381.  
  382.  
  383.       PRINTER PARAMETERS
  384.  
  385.       SETU=<setup>
  386.       Before the suggested route is sent to  the  printer a setup string can be
  387.       sent, eg to put the printer into  NLQ mode enter SETU=27,120,49 for epson
  388.       compatible printers.  Note that the setup  command  can be used more than
  389.       once.
  390.  
  391.       FORM=<character>
  392.       Contains the ASCII value of the character  which is used to form feed the
  393.       printer, this is normally 12 for epson compatible printers.
  394.  
  395.       PAGE=<page length>
  396.       Contains the page length, usually set to 66.
  397.  
  398.  
  399. 6.    MAP INFORMATION
  400.  
  401.       The program  includes  a  map  of  Britain  which  comprises  the British
  402.       mainland (Scotland, England and Wales),  the inner Hebrides, Anglesey and
  403.       the Isle of White.  The map  includes over 2300 places including motorway
  404.       intersections, airports, terminals and of  course towns and cities.  Note
  405.       that the map uses English names for Welsh towns.
  406.  
  407.       The naming conventions for the junctions  for  the enclosed map are given
  408.       below.
  409.  
  410.       Motorway intersections : Name of the  motorway  followed  by intersection
  411.                                number eg M9 J5, M74 J5
  412.       Road junctions         : Name of the two  roads  followed  by junction eg
  413.                                A91 A905 JUNCTION, A9 A85 JUNCTION
  414.  
  415.  
  416. 7.    DISTRIBUTION METHOD
  417.  
  418.       This program is shareware.  Route  Finder  v2.2  has taken a considerable
  419.       time to write and  creating  the  map  of  Britain  has  been a very slow
  420.       process.  If you use this program regularly you should register your copy
  421.       by sending ú10.00 sterling (cheque or  postal order) to the address below
  422.       please enclose your name and address.  In  return you will receive a code
  423.       which will remove all the limitations in the program (you will be able to
  424.       find routes of more than 200 miles  and  there  will be no more 15 second
  425.       delays) and includes details of how the algorithm works, details of other
  426.       commands you can  use  in  the  setup  file  and  you  will  also receive
  427.       information on future upgrades and map updates.  In the long term this is
  428.       a much cheaper alternative than  buying  a  new road map regularly.  Note
  429.       that bug fixes and support will only be offered to registered users.
  430.  
  431.       Brian Henderson
  432.       32 Archers Avenue
  433.       Broomridge
  434.       Stirling
  435.       FK7 7RJ
  436.  
  437.       You can also email me at:-    B.S.Henderson@ncl.ac.uk
  438.  
  439.       This program may be freely distributed  as  long all associated files are
  440.       also copied.  The files are :-
  441.  
  442.            FINDER22.PRG      Main executable program
  443.            FINDER21.RSC      Resource file required by FINDER22.PRG
  444.            FINDER21.INF      Setup file (see section 5)
  445.            FINDER22.TXT      Program documentation (this file)
  446.            BRITAIN.MAP       Map file of the British mainland (see section 6)
  447.            BRITAIN.SEA       The sea border for the map of Britain
  448.  
  449.  
  450. 8.    CHANGES FROM EARLIER VERSIONS
  451.  
  452.       8.1  CHANGES FROM v1.8 TO v2.0
  453.  
  454.       I have tried where possible  to  retain  a  similar structure to previous
  455.       versions of the program, for  example  many  of the dialogue boxes remain
  456.       unchanged.  However there are  a  number  of  important changes, the file
  457.       structure has completely changed  therefore  v1.8  files cannot load into
  458.       v2.0 and vice versa.
  459.  
  460.       In response to  earlier  criticism  the  program  has  been significantly
  461.       speeded up, the latest version is now  more than twice as fast at finding
  462.       routes.
  463.  
  464.       The program has been made resolution  independent to some extent although
  465.       it should still be run in an  80  column  mode (eg ST medium or high res)
  466.       although modes more than 80  columns  can  be  used.  The main reason for
  467.       this is to take advantage of the Falcons better screen resolutions.
  468.  
  469.       A number of bugs have also  been  fixed  since the previous version.  For
  470.       example the program would crash  after  finding certain routes.  It would
  471.       also crash if it tried to print road names of more than five characters.
  472.  
  473.  
  474.       8.2  CHANGES FROM v2.0 TO v2.1
  475.  
  476.       A sea border has been added to the program.
  477.  
  478.       A number of updates to the map of Britain have also been made.
  479.  
  480.       New options to allow easier zooming of the map have been added.
  481.  
  482.       Routes can be  printed  to disk as  well as to a printer.  This option was 
  483.       added for users who had printers which were incompatible with the program,
  484.       routes could be printed to disk then printed from a word processor.
  485.  
  486.  
  487.       8.3  CHANGES FROM v2.1 TO v2.2
  488.  
  489.       A bug which causes the program to crash when printing on the Falcon has
  490.       been removed (this has not been checked thoroughly).
  491.  
  492.       The start place and finish place entered in the Find Route dialogue box
  493.       are now stored.
  494.  
  495.       The main Find Route  option has  been speeded up.  This option would be
  496.       slowed down on computers with more than one megabyte of memory.
  497.  
  498.       Updates to the map of Britain were also made.
  499.  
  500.       The  names of the data  files have  not been  changed  for  greater
  501.       compatibility.
  502.  
  503.  
  504.       Note that  registered users can use their unique code number in any of the
  505.       versions mentioned above. Also map files are compatible with v2.0 to v2.2.
  506.  
  507.  
  508.       8.4  UPDATES
  509.  
  510.       Latest information (including  details of updates, Links to other Atari ST
  511.       sites and Frequently Asked Questions) concerning Route Finder can be found
  512.       on the Internet at the address given below:-
  513.  
  514.         http://www.ncl.ac.uk/~nbsh/
  515.  
  516.  
  517. 9.    DISCLAIMER
  518.  
  519.       To the best of my knowledge there  are  no  bugs in the program however I
  520.       cannot guarantee this, I can  also  not  guarantee  that the program will
  521.       find the "best" route or that  the  maps  are  complete and upto date.  I
  522.       cannot be held responsible for any loss of data.  Note that absolutely no
  523.       warrenty is provided with this program.
  524.  
  525.